home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4783 < prev    next >
Encoding:
Text File  |  1996-08-05  |  932 b   |  19 lines

  1. Newsgroups: comp.lang.c
  2. Path: IVORY.trentu.ca!DPIDVERBNY
  3. From: dpidverbny@ivory.trentu.ca
  4. Subject: HELP: Passing values from C to DLL
  5. X-Nntp-Posting-Host: trentu.ca
  6. Message-ID: <DMDpMz.H2H@blaze.trentu.ca>
  7. Sender: news@blaze.trentu.ca (USENET News System)
  8. Reply-To: dpidverbny@ivory.trentu.ca
  9. Organization: Trent University, Peterborough
  10. Date: Wed, 7 Feb 1996 00:06:34 GMT
  11.  
  12. This one is REALLY bugging the crap out of me.
  13. I can pass integers and long from my C written DLL to Visual Basic and vice-versa, but the minute I try to get a float or double from my DLL, Windows does it's neat little General Fault Protection Error trick.
  14. Is there something that I am missing, like a compiler option or a header or something?  
  15. To clear things up, what I want to do is call my DLL from VB, and have it return a real number.  Sounds simple right?
  16. If anyone knows what I am doing wrong please let me know.  A million thanks in advance.
  17. -Dan
  18.  
  19.